﻿@namespace BootstrapBlazor.Components
@inherits ButtonBase

@if (IsDisplay)
{
        <button @attributes="@AdditionalAttributes" type="@ButtonType.ToDescriptionString()" @onclick="@OnClickButton" id="@Id" class="@ClassName" disabled="@Disabled" role="button" aria-disabled="@DisabledString" tabindex="@Tab" @onclick:stopPropagation="@StopPropagation" @ref="ButtonElement">
        @if (!string.IsNullOrEmpty(ButtonIcon))
        {
                <i class="@ButtonIcon"></i>
        }
        @if (!string.IsNullOrEmpty(Text))
        {
                <span>@Text</span>
        }
        <CascadingValue Value="this" IsFixed="true">
            @ChildContent
        </CascadingValue>
    </button>

}
